package org.resotc.dao;

import java.util.HashMap;

import org.resotc.model.Centroid;

public interface CentroidDAO {

	/**
	 * Returns a centroid due to an id.
	 * 
	 * @param id
	 * @return
	 */
	public Centroid getCentroid(int id);

	/**
	 * Returns all centroids as a HashMap.
	 * 
	 * @return
	 */
	public HashMap<Integer, Centroid> getCentroids();

	/**
	 * Creates a new centroid.
	 * 
	 * @param centroid
	 */
	public void createCentroid(Centroid centroid);

	/**
	 * Updates an existing centroid.
	 * 
	 * @param centroid
	 */
	public void updateCentroid(Centroid centroid);

	/**
	 * Deletes an existing centroid.
	 * 
	 * @param id
	 */
	public void deleteCentroid(int id);

	/**
	 * Checks if an centroid already exists or not.
	 * 
	 * @param id
	 * @return
	 */
	public boolean centroidExists(int id);
}
